class ClassReader:
    data=[]
    def readUnit8(self):
        val=self.data[0]
        self.data=self.data[1:]
        return val
    def readUnit16(self):
        val=self.data[:2]
        self.data=self.data[2:]
        return val
    def readUnit32(self):
        val=self.data[:4]
        self.data=self.data[4:]
        return val
    def readUnit64(self):
        val=self.data[:8]
        self.data=self.data[8:]
        return val
    def readUnit16s(self):
        n=self.readUnit16()
        s=n.decode('utf-8')
        return s
    def readBytes(self,n):
        bytes=self.data[:n]
        self.data=self.data[n:]
        return bytearray